package com.wn.date20190806ATM;

/**
 * 账户
 * @author song
 *
 */
public class User
{
	private String account;// 账户
	private String password;// 密码
	private double balance;// 余额
	private boolean isLogined;// 登陆状态
	public User(User u)
	{
		this.account=u.account;
		this.password=u.password;
		this.balance=u.balance;
		this.isLogined=u.isLogined;
	}
	public User()
	{
		this.account="";
		this.password="";
		this.balance=0;
		this.isLogined=false;
	}
	public String getAccount()
	{
		return account;
	}
	public void setAccount(String account)
	{
		this.account = account;
	}
	public String getPassword()
	{
		return password;
	}
	public void setPassword(String password)
	{
		this.password = password;
	}
	public double getBalance()
	{
		return balance;
	}
	public void setBalance(double balance)
	{
		this.balance = balance;
	}
	public boolean isLogined()
	{
		return isLogined;
	}
	public void setLogined(boolean isLogined)
	{
		this.isLogined = isLogined;
	}
	
}
